<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
	<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <link href="/css/base.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="/css/blueblocks.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="/css/modernbricks.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="/css/tagbox.css" rel="stylesheet" type="text/css" media="screen" />
    <title>{% block title %}{% endblock %}</title> 
    <script src="/js/prototype.js" type="text/javascript"></script>
    <script src="/js/scriptaculous.js" type="text/javascript"></script>
    <script src="/js/datepicker.js" type="text/javascript"></script>
    <style type="text/css">
      @import("/css/datepicker.css");
    </style>
  </head> 
  <body>
    {% block adminlinks %}
    <div id="adminlinks">
      <a href="/profile/">My Profile</a> | <a href="/admin/">Admin interface</a> | <a href="/logout">Logout '{{user.username}}'</a>
    </div>
    {% endblock %}
    {% block menu %}
    <div id="modernbricksmenu2">
      <ul> 
        <li style="margin-left: 1px"><a href="/context">Inbox</a></li>
        {% for menu_item in menu_items %}
        <li {% if menu_item.current %}id="current"{% endif %}><a href="{{ menu_item.link }}">{{ menu_item.name }}</a></li>
        {% endfor %}

      </ul>
      <form id="myform" action="." method="GET">      <label for="search">Search: </label><input type="text" class="textinput" name="search" value="{{ query|escape }}"><input class="submit" type="submit" value="Search"></form>
    </div> 
    {% endblock %}
    <br style="clear: left" />
    {% block content %}
      {% block pretasks %}
      {% endblock %}
      <div id="maincontent">
      {% block tasks %}
      {% include 'simple/task_list.html' %}
      {% endblock %}
      {% block posttasks %}
      {% endblock %}
    {% endblock %}
    {% block footer %}
    <hr />
    {% include 'simple/task_display_form.html' %}
    <hr />
    {% include 'simple/add_task_form.html' %}

    {% endblock %}
    <hr />
    <p>Powered by <a href="http://maybelater.googlecode.com/">MaybeLater</a>.</p>
    </div>
  </body> 
</html>